package Text0;

import java.util.Scanner;

public class Textt {
	public static void main(String[] agrs) {
		Scanner scanner = new Scanner(System.in);
		System.out.println("请输入数字：");
		String num = scanner.next();
		int count[] = new int[10];
		for(int i=0;i<num.length();i++) {
			count[num.charAt(i)-'0']++;
		}
		for(int i=0;i<count.length;i++) {
			if(count[i]!=0) {
				System.out.println(i+":"+count[i]);
			}
		}
	}
}
